import { get, post } from "../utils/request";

/**
 *获取订单列表
 * @returns
 */
export const loadOrdersAPI = () => get("/api/v1/orders");

/**
 * 获取订单详情
 */

export const orderDetailsAPI = (id) => get("/api/v1/orders/" + id);
/**
 * 提交订单
 */
export const submitOrderAPI = (data) => post("/api/v1/orders", data);
